# ZH Documentation for LLMs Generated: 2025-05-09T15:47:34.836Z This file contains structured reference documentation, release notes, and a comprehensive directory of all documentation pages. # Documentation Directory ## Concepts - [ao 信使的工作原理](https://cookbook_ao.arweave.net/zh/concepts/how-it-works.html) - [ao 规范](https://cookbook_ao.arweave.net/zh/concepts/specs.html) - [aos 简明教程](https://cookbook_ao.arweave.net/zh/concepts/tour.html) - [Holographic State](https://cookbook_ao.arweave.net/zh/concepts/holographic-state.html) - [单元](https://cookbook_ao.arweave.net/zh/concepts/units.html) - [概念](https://cookbook_ao.arweave.net/zh/concepts/index.html) - [消息](https://cookbook_ao.arweave.net/zh/concepts/messages.html) - [走马观花的学习下 Lua](https://cookbook_ao.arweave.net/zh/concepts/lua.html) - [进程](https://cookbook_ao.arweave.net/zh/concepts/processes.html) ## Guides ### Aoconnect - [aoconnect](https://cookbook_ao.arweave.net/zh/guides/aoconnect/aoconnect.html) - [Sending a Message to a Process](https://cookbook_ao.arweave.net/zh/guides/aoconnect/sending-messages.html) - [从 ao 进程读取结果](https://cookbook_ao.arweave.net/zh/guides/aoconnect/reading-results.html) - [创建一个进程](https://cookbook_ao.arweave.net/zh/guides/aoconnect/spawning-processes.html) - [安装 ao connect](https://cookbook_ao.arweave.net/zh/guides/aoconnect/installing-connect.html) - [监控 Cron](https://cookbook_ao.arweave.net/zh/guides/aoconnect/monitoring-cron.html) - [调用 DryRun](https://cookbook_ao.arweave.net/zh/guides/aoconnect/calling-dryrun.html) - [连接到特定的 ao 节点](https://cookbook_ao.arweave.net/zh/guides/aoconnect/connecting.html) ### Aos #### Blueprints - [CRED Utils 蓝图](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/cred-utils.html) - [Token 蓝图](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/token.html) - [投票蓝图 (Voting Blueprint)](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/voting.html) - [聊天室蓝图 (Chatroom Blueprint)](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/chatroom.html) - [蓝图 Blueprints](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/index.html) - [质押蓝图 (Staking Blueprint)](https://cookbook_ao.arweave.net/zh/guides/aos/blueprints/staking.html) #### Modules - [ao](https://cookbook_ao.arweave.net/zh/guides/aos/modules/ao.html) - [Base64 编码模块](https://cookbook_ao.arweave.net/zh/guides/aos/modules/base64.html) - [JSON](https://cookbook_ao.arweave.net/zh/guides/aos/modules/json.html) - [Pretty 模块](https://cookbook_ao.arweave.net/zh/guides/aos/modules/pretty.html) - [Utils 工具库](https://cookbook_ao.arweave.net/zh/guides/aos/modules/utils.html) - [模块](https://cookbook_ao.arweave.net/zh/guides/aos/modules/index.html) - [.load 命令](https://cookbook_ao.arweave.net/zh/guides/aos/load.html) - [aos](https://cookbook_ao.arweave.net/zh/guides/aos/index.html) - [aos 中的自定义提示符(Prompt)](https://cookbook_ao.arweave.net/zh/guides/aos/prompt.html) - [CLI](https://cookbook_ao.arweave.net/zh/guides/aos/cli.html) - [FAQ](https://cookbook_ao.arweave.net/zh/guides/aos/faq.html) - [使用 ao.link 进行故障排除](https://cookbook_ao.arweave.net/zh/guides/aos/troubleshooting.html) - [创建一个 Pingpong 进程](https://cookbook_ao.arweave.net/zh/guides/aos/pingpong.html) - [在 ao 中创建 Token](https://cookbook_ao.arweave.net/zh/guides/aos/token.html) - [安装 aos](https://cookbook_ao.arweave.net/zh/guides/aos/installing.html) - [概览](https://cookbook_ao.arweave.net/zh/guides/aos/intro.html) - [理解收件箱(Inbox)](https://cookbook_ao.arweave.net/zh/guides/aos/inbox-and-handlers.html) - [编辑器初始化](https://cookbook_ao.arweave.net/zh/guides/aos/editor.html) - [指南](https://cookbook_ao.arweave.net/zh/guides/index.html) ## References - [ao Token 和子账本规范](https://cookbook_ao.arweave.net/zh/references/token.html) - [ao 模块](https://cookbook_ao.arweave.net/zh/references/ao.html) - [Handlers (版本 0.0.3)](https://cookbook_ao.arweave.net/zh/references/handlers.html) - [使用 ao 访问 Arweave 上的数据](https://cookbook_ao.arweave.net/zh/references/data.html) - [参考](https://cookbook_ao.arweave.net/zh/references/index.html) - [定时消息(Cron Messages)](https://cookbook_ao.arweave.net/zh/references/cron.html) - [社区](https://cookbook_ao.arweave.net/zh/references/community.html) - [编辑器设置](https://cookbook_ao.arweave.net/zh/references/editor-setup.html) - [认识 Lua](https://cookbook_ao.arweave.net/zh/references/lua.html) - [认识 Web Assembly](https://cookbook_ao.arweave.net/zh/references/wasm.html) ## Tutorials ### Begin - [`ao` 中的消息传递](https://cookbook_ao.arweave.net/zh/tutorials/begin/messaging.html) - [DAO 指南](https://cookbook_ao.arweave.net/zh/tutorials/begin/dao.html) - [准备工作](https://cookbook_ao.arweave.net/zh/tutorials/begin/preparations.html) - [创建 token](https://cookbook_ao.arweave.net/zh/tutorials/begin/token.html) - [在 aos 中建立一个聊天室](https://cookbook_ao.arweave.net/zh/tutorials/begin/chatroom.html) - [开始:互动教程](https://cookbook_ao.arweave.net/zh/tutorials/begin/index.html) - [支持 token 的聊天室](https://cookbook_ao.arweave.net/zh/tutorials/begin/tokengating.html) - [进入 `The Construct` - 交互式教程](https://cookbook_ao.arweave.net/zh/tutorials/begin/rabbithole.html) ### Bots and games - [我们来玩个游戏吧!](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/ao-effect.html) - [战略决策](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/decisions.html) - [扩建竞技场](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/build-game.html) - [整合在一起](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/bringing-together.html) - [机器人和游戏](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/index.html) - [竞技场机制](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/arena-mechanics.html) - [自动响应](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/attacking.html) - [获取游戏状态](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/game-state.html) - [解析公告](https://cookbook_ao.arweave.net/zh/tutorials/bots-and-games/announcements.html) - [教程](https://cookbook_ao.arweave.net/zh/tutorials/index.html) ## Welcome ### Testnet info - [CRED 和任务 FAQ](https://cookbook_ao.arweave.net/zh/welcome/testnet-info/cred-and-quests.html) - [参与 ao 测试网](https://cookbook_ao.arweave.net/zh/welcome/testnet-info/index.html) - [5分钟入门](https://cookbook_ao.arweave.net/zh/welcome/getting-started.html) - [欢迎来到 ao](https://cookbook_ao.arweave.net/zh/welcome/index.html) - [LLMs 文件文档](https://cookbook_ao.arweave.net/zh/llms-explanation.html) # Detailed Content ## TABLE OF CONTENTS - API AND FUNCTION REFERENCES - ao 模块 - 社区 - 定时消息(Cron Messages) - 使用 ao 访问 Arweave 上的数据 - 编辑器设置 - Handlers (版本 0.0.3) - 参考 - 认识 Lua - ao Token 和子账本规范 - 认识 Web Assembly ## API AND FUNCTION REFERENCES ### ao 模块 Source: https://cookbook_ao.arweave.net/zh/references/ao.html ### API Definitions - send - spawn - isTrusted ### 社区 Source: https://cookbook_ao.arweave.net/zh/references/community.html [Autonomous Finance](https://www.autonomous.finance/) ### 定时消息(Cron Messages) Source: https://cookbook_ao.arweave.net/zh/references/cron.html ### Code Examples ``` 如果你希望停止触发定时(cron) 消息,只需调用 `.unmonitor`,这会停止触发过程。但下次你发送消息时,生成的定时(cron) 消息仍将创建和处理进程。 ## 处理定时消息 每条定时(cron) 消息都有一个值为 `Cron` 的 `Action` 标签。根据定义,[处理器](handlers.md)在每次收到定时(cron) 消息时,都会自动执行特定任务。 ``` ### 使用 ao 访问 Arweave 上的数据 Source: https://cookbook_ao.arweave.net/zh/references/data.html 在你的 ao 开发工作流程中,可能有时候你想要访问 arweave 上的数据。你的进程可以使用 ao 发送一条消息,然后 ao 网络会通过一个 Message 对象将数据提供给你的 Process 对象。 ### 编辑器设置 Source: https://cookbook_ao.arweave.net/zh/references/editor-setup.html ### API Definitions - VS ### Handlers (版本 0.0.3) Source: https://cookbook_ao.arweave.net/zh/references/handlers.html ### API Definitions - `Handlers.add - `Handlers.append - `Handlers.prepend - `Handlers.before - `Handlers.after - `Handlers.remove - `Handlers.evaluate - Handlers.utils - Handlers.utils.hasMatchingData - Handlers.hasMatchingTag - Handlers.reply ### Code Examples ``` 如果这个进入进程的消息有设置成 ”ping" 的数据,那么这个 handler 会匹配上它,并调用处理函数。 ### Handlers.hasMatchingTag(name : string, value : string) 这个辅助函数返回一个需要消息参数的函数,因此你可以将它放入 Handlers 模块的任何匹配参数中。该函数会比较 Tag 的名称和数值,如果它们相等,则调用处理函数。 ``` ``` ### Handlers.reply(text : string) 这个辅助函数是一个简单的处理函数,就是将 text 的值放入发送消息的 Data 属性中。 ``` ### 参考 Source: https://cookbook_ao.arweave.net/zh/references/index.html ## 目录 - [Lua](lua) - [Web Assembly](wasm) - [ao 模块](ao) - [Handlers](handlers) - [代币](token) - [加载 Arweave 数据](data) - [定时消息](cron) - [编辑器设置](editor-... ### 认识 Lua Source: https://cookbook_ao.arweave.net/zh/references/lua.html 1. **安装**: 访问 [Lua 的官方网站](http://www.lua.org/download.html) ,下载并安装 Lua。 2. **环境**: 你可以使用简单的文本编辑器和命令行,或者像 ZeroBrane Studio ,或带有 Lua 插件的 Eclipse 这样的集成开发环境(IDE)。 ### ao Token 和子账本规范 Source: https://cookbook_ao.arweave.net/zh/references/token.html ### API Definitions - Balance - Balances - Transfer - Get - Mint - `Credit - Transfer - Withdraw ### Code Examples ``` ### Balances() 返回 Token 中所有参与者的余额。 ``` ``` ### Transfer(Target, Quantity) 如果发送者拥有足够的余额,则向目标发送 `Quantity`,向接收者发出 `Credit-Notice`,向发送者发出 `Debit-Notice`。如果发送者余额不足,操作失败并通知发送者。 ``` ``` 接收者将从消息的 `From-Process` 标签中知道他们已收到该 Token 。 ### Get-Info() ``` ### Parameters | | -------- | ------------------------------------------------------------- | ------------------ | | Balance | 获取一个标志符(identifier) 的余额 | :heavy_check_mark: | | Balances | 获取整个账本/账户的余额列表 | :heavy_check_mark: | | Transfer | 函数调用者向一个或多个目标发送1个或多个单位,并选择通知目标。 | :x: | | Mint | 如果你使用了具备 root 权限的进程,你可以增加 Token 供应量 | :x: | ### Parameters | | ------------ | --------------------------------------------------- | ------------------ | | Name | Token 的名称,也就是显示给用户的名称。 | :heavy_check_mark: | | Ticker | Token 的缩写名称,以便快速引用。 | :heavy_check_mark: | | Logo | 应用程序希望在 Token 旁边显示的图片,以便快速识别。 | :heavy_check_mark: | | Denomination | 当向用户显示数量和余额时, Token 精度度量。 | :x: | ### Parameters | | ------------ | --------------------------------- | ------------ | | Source-Token | 这个子账本代表的根进程的 `ID`。 | :x: | | Parent-Token | 这个子账本连接到的父进程的 `ID`。 | :x: | ### 认识 Web Assembly Source: https://cookbook_ao.arweave.net/zh/references/wasm.html WebAssembly(通常简称为 Wasm)是一种现代的二进制指令格式,为高级语言(如C、C++和Rust)提供了一个可迁移的编译目标。它可以支持在网络上部署客户端和服务器应用,并提供高水平的性能和效率。WebAssembly 是为了保持网络浏览器的安全性和沙盒功能而设计的,成为网络应用程序的选择之一。它是网络开发人员的关键技术,使他们能够用多种语言编写代码,并将代码编译为在浏览器中以接近原生速度运行的字节码。 # Summary Total files processed: 10 Total documentation pages: 75 This documentation is focused on technical references and release notes, prioritizing accuracy and relevance for LLM processing.